package com.baibei.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * Created by tang on 2018/7/24.
 */

public class NewMarqueeInfo implements Parcelable,Serializable {
    private String message;
    private String target;
    private String targetUrl;

    protected NewMarqueeInfo(Parcel in) {
        message = in.readString();
        target = in.readString();
        targetUrl = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(message);
        dest.writeString(target);
        dest.writeString(targetUrl);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<NewMarqueeInfo> CREATOR = new Creator<NewMarqueeInfo>() {
        @Override
        public NewMarqueeInfo createFromParcel(Parcel in) {
            return new NewMarqueeInfo(in);
        }

        @Override
        public NewMarqueeInfo[] newArray(int size) {
            return new NewMarqueeInfo[size];
        }
    };

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public String getTargetUrl() {
        return targetUrl;
    }

    public void setTargetUrl(String targetUrl) {
        this.targetUrl = targetUrl;
    }

    @Override
    public String toString() {
        return "NewMarqueeInfo{" +
                "message='" + message + '\'' +
                ", target='" + target + '\'' +
                ", targetUrl='" + targetUrl + '\'' +
                '}';
    }
}
